package com.xzy.springboot.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Service
@FeignClient(value = "cloud-payment-service-hystrix",fallback = PaymentServiceFallback.class)
public interface PaymentService {

    @GetMapping("/payment/getok/{id}")
     String PaymentOk(@PathVariable("id") Integer id);


    @GetMapping("/payment/getout/{id}")
     String PaymentTimeout(@PathVariable("id") Integer id);
}
